<?php
header("Content-Type: text/html; charset=utf-8");
include_once ('catalog.php');
$id= intval($_GET["id"]);
$ret=catlog_delete($id);

if($ret==true){
	echo "<script>alert('删除成功！');</script>";

}else{
	echo "<script>alert('删除失败！');</script>";
}

echo ("<script>document.location='productCatalog.php';</script>");
?>